package org.celery.modules.merchant.wrapper;

import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.celery.modules.merchant.entity.Merchant;
import org.celery.modules.merchant.vo.MerchantVO;

/**
 * 商户表.包装类,返回视图层所需的字段
 *
 * @author Celery
 * @since 2021-10-30
 */
public class MerchantWrapper extends BaseEntityWrapper<Merchant, MerchantVO>  {

    public static MerchantWrapper build() {
        return new MerchantWrapper();
    }

	@Override
	public MerchantVO entityVO(Merchant merchant) {
		MerchantVO merchantVO = BeanUtil.copy(merchant, MerchantVO.class);

		return merchantVO;
	}

}
